<%@ page contentType="text/html;charset=UTF-8" %>

<%@ page import="sige.Usuario" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="layout" content="main">
    <title>Login</title>
  </head>
  <body>
    <div class="container">
        <div class="span8">
            <h1>Seja bem vindo!</h1>
            <p>Você está a se logar no sistema de apoio ao ensino do Centro Integrado de Vivências Educacionais - CIVE. Esperamos ter ótimas experiências juntos.</p>
            <p>Selecione a aba em que deseja se logar e siga em frente.</p>
            <g:hasErrors bean="${usuarioInstance}">
                <ul class="alert alert-error">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    <g:eachError bean="${usuarioInstance}" var="error">
                    <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                </g:eachError>
                </ul>
            </g:hasErrors>
            <g:form metod="post" class="form-horizontal well">
                <div class="control-group" >
                    <label  class="control-label" for="login">
                       <g:message code="usuario.login.label" default="Login" />
                       <span class="required-indicator">*</span>
                    </label> 
                    <div class="controls"> 
                        <g:textField name="login" class="span3" placeholder="Login" value="${usuarioInstance?.login}" required="" /></td>
                    </div> 
                </div>
                
                <div class="control-group" >
                    <label  class="control-label" for="senha">
                       <g:message code="usuario.senha.label" default="Senha" />
                       <span class="required-indicator">*</span>
                    </label> 
                    <div class="controls"> 
                        <g:passwordField name="senha" class="span3" placeholder="Senha" value="${usuarioInstance?.senha}" required="" /></td>
                    </div> 
                </div>
                
                <div class="control-group" >
                    <label  class="control-label" for="NULL">
                    </label> 
                    <div class="controls">
                        <g:actionSubmit action="logar" class="btn btn-primary" value="Entrar"/>
                    </div> 
                </div>
                
            </g:form>
        </div><!--/span-->
    </div>
  </body>
</html>
